// 改变this指向,同时执行函数
function myCall (_this, ...options) {
  const context = this
  console.log(_this);
  console.log(context);
}

function test () {
  console.log('---test---', arguments)
}

Function.prototype.myCall = myCall

test.myCall({name: 'mal'}, 1, 2, 3)
